import Vue from 'vue'
import VueRouter from 'vue-router'
import consultView from '../views/consultView.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    redirect: '/consult',
    // component: consultView
  },
  {
    path: '/consult',
    name: 'consult',
    component: () => import(/* webpackChunkName: "consult" */ '../views/consultView.vue')
  },
  {
    path: '/extract',
    name: 'extract',
    component: () => import(/* webpackChunkName: "extract" */ '../views/extractView.vue')
  },
  {
    path: '/redact',
    name: 'redact',
    component: () => import(/* webpackChunkName: "redact" */ '../views/redactView.vue')
  },
  {
    path: '/contents',
    name: 'contents',
    component: () => import(/* webpackChunkName: "content" */ '../views/contentsView.vue')
  },
  {
    path: '/camera',
    name: 'camera',
    component: () => import(/* webpackChunkName: "content" */ '../views/cameraView.vue')
  },
  {
    path: '/report',
    name: 'report',
    component: () => import(/* webpackChunkName: "report" */ '../views/reportView.vue')
  },
]

const router = new VueRouter({
  mode: 'hash',
  base: process.env.BASE_URL,
  routes
})

export default router
